home *** CD-ROM | disk | FTP | other *** search
/ Super PC 35 / Super PC 35 (Shareware).iso / spc / WIN95 / DOSLFN / DOSLFNBK.TXT < prev    next >
Encoding:
INI File  |  1996-02-11  |  31.0 KB  |  688 lines

  1. [PREFACE]
  2.  
  3.                Excerpt from
  4.                Common Questions & Answers About Arcada Backup for Windows 95 
  5.                found at the Arcada Web Site in early 1996
  6.  
  7.                Q. If my Windows 95 crashes will the [Arcada Windows 95] 
  8.                backup program work with DOS?  
  9.  
  10.                A. No, you must reinstall Windows 95 and then the backup 
  11.                program. Unfortunately, the disaster recovery feature 
  12.                that we worked so hard on has turned out to be 
  13.                significantly more difficult than we first believed and 
  14.                did not make it into the first release of the product.  
  15.  
  16.                The problem is in storing enough of the Windows 95 
  17.                operating system on the bootable disk so that we can 
  18.                access the VFAT file system and gain access to the long 
  19.                filenames and the Registry.  Many people mistakenly 
  20.                believe that you can boot to DOS and restore from there, 
  21.                but unfortunately this does not allow recovery of the 
  22.                long filenames and the registry. Arcada is working with 
  23.                Microsoft on the design of this feature and hopes to have 
  24.                it in the next release before the end of the year.  
  25.  
  26.                As it currently stands, to recover from a complete 
  27.                disaster you need to do the following: 
  28.  
  29.                1) Boot from a DOS disk, 
  30.  
  31.                2) Install a minimal version Windows 95 from CD-ROM or 
  32.                   floppies (hopefully the former, this means you do not 
  33.                   have to recreate the Registry or any preferences, 
  34.                   etc.), 
  35.  
  36.                3) Install Arcada Backup for Windows 95, 
  37.  
  38.                4) Restore your latest backup. 
  39.  
  40. Fact is, most Windows 95 users don't understand the problems the failure 
  41. of drive C can cause.  Many also don't even understand their old pre-
  42. Windows 95 (legacy) software won't restore Windows 95 properly and that 
  43. the backups have truncated long filenames (LFN) and long-filename-
  44. format directory names.  
  45. ======================================================================= 
  46.  
  47. DOSLFNBK v 1.0 - Backs up/restores Win95 long filenames in DOS
  48. Copyright (c) 1995 D.J. Murdoch.
  49.  
  50.                [Textual modifications or annotations to this file 
  51.                occurred 2/11/96 and appear as bracketed insets like 
  52.                this one.] 
  53.  
  54.                [DOSLFNBK.TXT v1.1]
  55.  
  56. 0. Contents of this file
  57.  
  58.    1. Syntax
  59.    2. Description
  60.    3. Details
  61.    4. Memory Limitations
  62.    5. Safety
  63.    6. Recovery from Total Disk Failure
  64.    7. License
  65.    8. Release History
  66.    9. Acknowledgments
  67.  
  68. 1. Syntax:
  69.  
  70.       DOSLFNBK [drive]directory [options]
  71.  
  72.         will back up all the long filename records in the named
  73.         directory and subdirectories of it to a file called
  74.         BACKUP.LFN.
  75.  
  76.       Options:
  77.         /f [filename] Back up to this file instead (with a default .LFN
  78.                      extension)
  79.         /force       Force DOSLFNBK to go ahead without asking questions,
  80.                      even when it may be unsafe
  81.                                [consider avoiding this option]
  82.         /nr          No recursive:  don't do subdirectories
  83.         /nt          Don't restore times from LFN backup
  84.         /p           Prompt before each filename restore (ignored
  85.                      during saves)
  86.         /r           Restore from existing backup
  87.         /v           Give running status report
  88.         /d filename  Write a detailed debugging log to filename
  89.  
  90.                [Note that while DOSLFNBK.EXE can be run from earlier 
  91.                versions of DOS, in order to use "lock" or "unlock" as
  92.                shown in examples below, you must have either booted
  93.                under Windows 95, pressed F8 to get the Boot Menu and
  94.                selected menu item 5, or, you must have booted from a
  95.                Windows 95 startup disk and avoided loading the Windows
  96.                GUI.  Where you have booted from DOS 3.1-6.22 the 
  97.                "lock" or "unlock" commands are not needed and will
  98.                produce a BAD COMMAND OR FILENAME message. It isn't
  99.                necessary under pre-Windows 95 DOS anyway.]
  100.  
  101.       Examples:
  102.  
  103.         For recovery from a total disk failure, see [Section 6] below.
  104.  
  105.         To back up every long filename on the disk into C:\BACKUP.LFN:
  106.  
  107.            doslfnbk c:\
  108.  
  109.         To restore just the Windows directory and subdirectories:
  110.  
  111.            lock c:
  112.            doslfnbk c:\windows /r
  113.            unlock c:
  114.  
  115.         To restore just the root directory, but no subdirectories:
  116.  
  117.            lock c:
  118.            doslfnbk c:\ /r /nr
  119.            unlock c:
  120.  
  121.         The following [syntax] is not allowed; you need a full path:
  122.  
  123.            doslfnbk .                                 <---- Error!
  124.  
  125.         To restore the "Program Files" directory name and its
  126.         subdirectories, you need two runs:
  127.  
  128.            lock c:
  129.            doslfnbk c:\PROGRA~1 /r
  130.            doslfnbk c:\ /r /p /nr
  131.            unlock c:
  132.  
  133.         On the second run, you'll be prompted for each name to restore;
  134.         just say yes when you see "Program Files".
  135.  
  136. 2. Description:
  137.  
  138.         Microsoft's Windows 95 introduced long filenames (LFNs), and 
  139.         they are [often] compatible with old software [in their 
  140.         truncated form].  However, there are some problems.  Old backup 
  141.         programs [truncate] LFNs, so they don't get properly backed up.  
  142.         Worse, the Win95 backup program doesn't support a lot of common 
  143.         backup hardware (e.g.  Colorado Memory Systems tape drives 
  144.         using accelerator cards) and won't run in DOS mode.  [Even 
  145.         backup software released as Windows 95 compatible has the 
  146.         problem of not being usable under DOS.]  So recovery from a 
  147.         catastrophic disk failure can be really difficult.  
  148.  
  149.         To address this problem, Microsoft put a program called LFNBK on
  150.         the Win95 CD ROM to [help] back up your LFNs.  However, it's 
  151.         very inconvenient [and somewhat dangerous] to use.  It requires 
  152.         changes to your Control Panel settings before and after use [by 
  153.         novices -- Control Panel changes can be avoided by using its 
  154.         /force parameter], and it works by [truncating] all the LFNs on 
  155.         your disk(s) --- so you need to restore them again after you've 
  156.         done your backup to tape.  It will only run after Win95 has 
  157.         booted, so, again, you've got big problems after a catastrophic 
  158.         disk failure.  If you're using a [legacy backup] program that 
  159.         is completely incompatible with LFNs then you might want to use 
  160.         LFNBK, but for routine system backups it's [complicated and] 
  161.         too much of a pain.  [The thing to remember about Microsoft's 
  162.         LFNBK.EXE is that it is destructive to long filenames and 
  163.         unless you clearly understand how to use it, it can greatly 
  164.         complicate your life.] 
  165.  
  166.         I wrote DOSLFNBK to address these problems.  It runs in any
  167.         version of DOS [above 3.1] that can see your disk, and can both 
  168.         backup and restore your files there.  During backup, it makes 
  169.         no changes to the names, [i.e., it is not destructive to LFNs] 
  170.         so you can routinely run it just before a tape backup and not 
  171.         have to undo the damage afterwards.  It also allows partial 
  172.         backups and partial restores; I'm pretty sure LFNBK is an all-
  173.         or-nothing affair.  
  174.  
  175.         The downside of DOSLFNBK is that it has to work on the disk
  176.         below the file system level.  This means that if other programs
  177.         are running simultaneously, it can get confused, and may cause
  178.         errors in the backup or even errors on the disk itself.  I
  179.         recommend running it only in a single-tasking DOS session, 
  180.         unless you're quite sure no other program is writing to the 
  181.         disk.  [Extreme caution should be exercised on using DOSLFNBK 
  182.         in a multi-tasking mode.  It can trash your part of your VFAT 
  183.         and make files unrecoverable unless they've already been backed 
  184.         up.  DOSLFNBK will warn you to be careful.  Consider the 
  185.         warning CARVED IN STONE.] 
  186.  
  187. 3. Details:
  188.  
  189.         [Prior to commencing] a backup, DOSLFNBK reads the directories 
  190.         on the disk and writes copies of all of the LFN records to the 
  191.         [binary index] BACKUP.LFN file (or whatever filename you 
  192.         specify with /f).  If you use the /nr option, it will work only 
  193.         on the specified directory; otherwise, it saves those entries 
  194.         as well as everything in any subdirectory below it.  [Under 
  195.         most conditions, DOSLFNBK is best executed from the root 
  196.         directory unless you have a specific reason to be focusing on 
  197.         LFNs in a specific part of your directory structure.]
  198.  
  199.         You'll get a warning if you run it in Windows mode, since other
  200.         programs might change the directories while DOSLFNBK is running
  201.         and cause it to store and/or restore garbage [in addition to 
  202.         trashing filenames].
  203.  
  204.         The /force option tells DOSLFNBK to go ahead without stopping
  205.         for this warning, or several others (e.g. overwriting the backup
  206.         file).  Use it in a batch file only when you're sure you always
  207.         want it to go ahead.  [And consider using /force or even 
  208.         DOSLFNBK as in a multi-tasking mode as playing with matches in 
  209.         a room full of dynamite.]
  210.  
  211.         You *must* give the drive letter and a full path to the
  212.         directory; relative directory specifications are not supported.
  213.         Note that the directory name itself won't be backed up or
  214.         restored [unless it is a long-filename-format named directory]; 
  215.         only the files and subdirectories within it.  There is no way 
  216.         to specify a subset of the files; you have to use the /p 
  217.         prompting option if you want this.  
  218.  
  219.         The original drive letter is not stored in BACKUP.LFN, so you
  220.         can use DOSLFNBK to save the long filenames on one drive, use a
  221.         DOS utility to move them to another drive, and then restore the
  222.         filenames there.
  223.  
  224.         [If you have booted in native DOS mode under Windows 95,] 
  225.         during a restore, you should use the DOS command LOCK to give 
  226.         DOSLFNBK access to the disk at a low level.  I can't find 
  227.         documentation for LOCK anywhere, [but it does not necessarily 
  228.         provide extra protection if you are so foolish as to run 
  229.         DOSLFNBK in a multi-tasking mode (e.g., from a DOS window from 
  230.         within Windows 95].
  231.  
  232.         DOSLFNBK will normally not overwrite an existing LFN with a
  233.         different one; you should rename the file to its 8.3 alias
  234.         before running if you want to restore an old name, or run with
  235.         the /p option for individual prompting.
  236.  
  237.         Normally, DOSLFNBK will restore the backed up date information,
  238.         since older DOS versions and DOS utilities don't [always] save
  239.         this properly.  You can override this behavior by using the /nt
  240.         switch.
  241.  
  242.         If during a restore, DOSLFNBK detects that the file size has
  243.         changed, you'll be prompted as to whether you want to restore
  244.         the LFN or not.  If you choose to restore it, the date
  245.         information will *not* be restored, as it is probably incorrect.
  246.  
  247.         During a restore, the file attributes of the file on the disk
  248.         will be kept.
  249.  
  250.         To show you the progress [while running], DOSLFNBK prints a dot for
  251.         about every 10 directories examined or (in /v mode) prints the 
  252.         directory and file names.  [Faster computers may complete the 
  253.         execution of DOSLFNBK before the dots even appear.]  If it 
  254.         stops printing [dots] for more than a few seconds, something is 
  255.         probably wrong.  Try running again with the /d debug log 
  256.         option, and if it stops again, please email me 
  257.         (dmurdoch@mast.queensu.ca) a copy of your log, along with a 
  258.         description of your system.  I'm very interested in making 
  259.         DOSLFNBK as bug-free as possible.  
  260.  
  261.         When a run is successful, DOSLFNBK exits with [but does not 
  262.         display] ERRORLEVEL 0.  When something goes wrong, it prints an 
  263.         error message and exits with a higher errorlevel. The currently 
  264.         defined [v1.0] error levels are: 
  265.  
  266.          99 = Syntax error
  267.          98 = Error initializing disk
  268.          97 = Error reading disk
  269.          96 = Error writing disk
  270.          95 = Error in directory on disk
  271.          94 = Error setting up directory
  272.          93 = Error opening backup
  273.          92 = Error reading backup
  274.          91 = Error writing backup
  275.          90 = Error closing backup
  276.          89 = Memory error
  277.          88 = Multitasker running
  278.          87 = Backup file exists
  279.          86 = Debug log problem
  280.  
  281. 4. Memory Limitations:
  282.  
  283.         When running, DOSLFNBK keeps copies of several directories in
  284.         memory at once.  It is written as a real mode DOS program and
  285.         keeps all of this data in the low 640K of memory.  This means
  286.         that in a typical DOS session with 500K of memory available,
  287.         DOSLFNBK will run out of memory [if] about 15,000 directory 
  288.         entries are in memory.  On a restore, up to 3 copies of each 
  289.         directory entry may be in memory at once, limiting DOSLFNBK to 
  290.         disks with fewer than 5000 directory entries in any branch of 
  291.         the directory tree.  (The total number of files on the disk 
  292.         doesn't matter; what matters is the number of entries in a 
  293.         directory, its parent, grandparent etc., back to the root.) 
  294.  
  295.         I think disks approaching this limit are very unusual. However,
  296.         it *is* possible to have such a disk, and here's how to find
  297.         out if you do:
  298.  
  299.         Run your [DOSLFNBK] backup with the /V verbose option.  At the 
  300.         end, it will print a message something like 
  301.  
  302.            Used 255K; restore will require about 264K in DOS session.
  303.  
  304.         If the amount of memory estimated for the restore is more than
  305.         you have available (as reported by the DOS MEM command), you
  306.         might have problems.  You might not; the number reported is
  307.         usually an overestimate.
  308.  
  309.         If it ever turns out that you do run out of memory during a
  310.         restore, you can still restore the LFNs by breaking up the
  311.         restore operation into several steps, restoring different parts
  312.         of your subdirectory tree separately.  In the worst case (more
  313.         than 5000 entries in a single subdirectory), you may have to
  314.         temporarily move files out of the directory and restore the LFNs
  315.         a few thousand (!!) at a time.
  316.  
  317. 5. Safety:
  318.  
  319.         DOSLFNBK works with your disk at a level below the file system,
  320.         so if things go wrong during an LFN restore, it's conceivable
  321.         that you could lose whole files or directories.  I've tried to
  322.         make it as safe as I can, but you should follow some simple
  323.         precautions:
  324.  
  325.           - If you aren't sure of the integrity of your file system, run
  326.           Scandisk before DOSLFNBK and get it to fix any errors.  In
  327.           particular, if you've run other low level software (e.g. a
  328.           defragger or a directory sorter) that may have messed up the
  329.           LFNs, run Scandisk first.
  330.  
  331.           - If you choose to run in Windows despite the warning about
  332.           the multitasker, then definitely don't make changes to files
  333.           in the directories where DOSLFNBK is currently restoring LFNs.
  334.           You're *very* likely to lose your new work.
  335.  
  336.           - Don't turn off or reboot your PC in the middle of a DOSLFNBK
  337.           run.  If there's a power failure or (horrors!) a bug in
  338.           DOSLFNBK forces you to reboot, then Scandisk should be able to
  339.           repair much of the damage.  You may lose some filenames, but
  340.           Scandisk should be able to recover the files themselves.
  341.  
  342.           - If you hit Ctrl-Break or Ctrl-C during a DOSLFNBK restore,
  343.           it shouldn't do any damage other than giving you only a
  344.           partial restore of your LFNs --- but this is *not* a
  345.           well-tested feature, and there may be conditions under which
  346.           you'll suffer worse damage.  Again, Scandisk should be able to
  347.           repair most of it.
  348.  
  349.           - DOSLFNBK was written for version 4.00.950 of Windows 95 (the
  350.           August 1995 release).  It hasn't been tested on the earlier
  351.           beta test versions or on any later releases.  If the VFAT file
  352.           structure isn't what DOSLFNBK is written for, it could do some
  353.           real damage.
  354.  
  355.           - This is the first release of DOSLFNBK to the public.  There
  356.           may still be special conditions on your system that it doesn't
  357.           handle.  If you can, try it out when you've got a good second
  358.           backup to make sure it works.  If it doesn't, *please* send me
  359.           details, and I'll attempt to fix it.
  360.  
  361. 6. Recovery from total disk failure:
  362.  
  363.         If your boot disk fails, or you decide to repartition it, then
  364.         you may need to do a full restore from a backup tape.
  365.         Unfortunately, the Win95 backup program [and other now-available 
  366.         Windows 95 compatible backup programs] provide *no way* to do 
  367.         this without re-installing Win95 from the original disks or CD 
  368.         ROM.  [Actually, if you bought the $89 upgrade version of 
  369.         Windows 95, you'll first have to re-install Windows 3.1x.]  
  370.         From reports I've heard, the same is true of the just-released 
  371.         Win95 version of Colorado Memory System's backup program and 
  372.         some other commercial backup programs. [As of early 1996 it was 
  373.         also true of Arcada Backup for Windows 95 and IOMEGA's Windows 
  374.         95 upgrade software.] 
  375.  
  376.         However, if you have a reliable DOS-based backup program, 
  377.         DOSLFNBK will let you do a complete restore from a backup.  [A 
  378.         very good choice for tape backup systems is Arcada's pre-
  379.         Windows 95 software distributed free with blank tapes.  It 
  380.         comes in both the DOS and Windows (3.1x) versions.  Use the DOS 
  381.         version only, though.]  I've only had to do this once, so these 
  382.         instructions aren't guaranteed to cover everything for every 
  383.         system, but they worked on mine.  
  384.  
  385.         ADVANCE PREPARATIONS:
  386.  
  387.         Before your disk fails (i.e., right now! :-), you need to prepare
  388.         the following:
  389.  
  390.           1. A Win95 startup disk.  If you didn't create one when you
  391.           installed Win95, start the Add/Remove Programs option in
  392.           Control Panel, and click the Startup Disk tab. Then click the
  393.           Create Disk button, and follow the instructions on-screen.  
  394.           [A DOS 3.1-6.22 startup disk will also work and may even make 
  395.           matters a bit simpler.]
  396.  
  397.           2. A copy of your DOS-based backup/restore program on a 
  398.           floppy disk [or the original distribution disks so you can 
  399.           reinstall it after a drive C failure -- your DOS legacy 
  400.           backup software may be too large to fit on a startup disk, 
  401.           especially one created with Windows 95].  It may require EMS 
  402.           memory; if so, you should put HIMEM.SYS and EMM386.EXE on 
  403.           your startup disk, and load them via CONFIG.SYS.  
  404.  
  405.           3. If you use Drivespace disk compression, then you should also
  406.           make sure that the MINI.CAB file from the installation disks
  407.           or the CD ROM is in your Windows directory.  [An alternative 
  408.           for this possible snag is to create your Windows 95 startup 
  409.           disk and then put your DOS legacy backup software on a second 
  410.           disk.]
  411.  
  412.           4. [Perform] a full backup of your disk(s).  Just before 
  413.           creating this, run DOSLFNBK to save all of your long 
  414.           filenames.  You'll need to create one DOSLFNBK backup file 
  415.           for each disk.  It's fine to leave this on the hard disk so 
  416.           that it ends up on the backup; you don't need to have it on 
  417.           floppy disk.  
  418.  
  419.           [Example .BAT file
  420.  
  421.           @echo off
  422.           cls
  423.           c:
  424.           cd\
  425.           if exist backup.lfn del backup.lfn
  426.           if exist backup.lst del backup.lst
  427.           doslfnbk c:\ /v > backup.lst
  428.           type backup.lst | more
  429.  
  430.           This .BAT file first checks for the presence of earlier files 
  431.           from previous use of DOSLFNBK.  Then it saves an ASCII 
  432.           version of the binary index using redirection and the TYPE 
  433.           command.  Having a list of the LFNs affected can prove very 
  434.           useful if your restore misses renaming a LFN or two.  If you 
  435.           are using DOSLFNBK on other hard physical or logical hard 
  436.           drives, you'll need a similar .BAT file for each drive.] 
  437.  
  438.         WHEN YOUR DISK FAILS:
  439.  
  440.         Depending on the reason for your disk failure, you may be able
  441.         to skip some of the early steps here.  Read them over, and
  442.         figure out where to start.  If you have to, you can start again,
  443.         so the only thing you lose by starting too far down is time.
  444.  
  445.           1. Make any necessary repairs to your hardware.
  446.  
  447.           2. Boot from your Startup disk, and use FDISK to partition
  448.           your disk.  Use "FORMAT c: /s" to reformat the disk and
  449.           transfer the system files to it.
  450.  
  451.           3. (Optional) Transfer your tape backup software to your hard
  452.           disk.  [The software will run much faster from the hard 
  453.           drive.]
  454.  
  455.          [3.a. To be prepared for a catastrophic failure of drive C, 
  456.           consider putting a copy of your backup software on another
  457.           drive, perhaps in a .ZIP file to save space.]
  458.  
  459.           4. If you're not planning to use Drivespace, you can skip down
  460.           to step 8.
  461.  
  462.           5. If you want to compress your drive, you need to restore
  463.           enough of Win95 to run Drivespace.  Don't restore the whole
  464.           disk; you might not have room for it.  For most people,
  465.           restoring the files in the root directory and the files in the
  466.           Windows directory should be enough.  If you have any essential
  467.           drivers in other directories, you'll need to restore them too.
  468.           Finally, you should restore DOSLFNBK and the data file(s)
  469.           containing the backed up long filenames.
  470.  
  471.           IMPORTANT:  You should not overwrite IO.SYS, but you *should*
  472.           overwrite MSDOS.SYS.  It is a hidden read-only file in your
  473.           root directory.  A good way is to erase MSDOS.SYS before
  474.           starting the restore (use ATTRIB from the Startup disk to
  475.           remove the System, Hidden, Read-only attributes), and then
  476.           telling your restore program not to overwrite existing files.
  477.  
  478.           Restore all those files now.
  479.  
  480.           6. Restore the long filenames by running
  481.  
  482.              LOCK C:
  483.              DOSLFNBK c:\ /R /V /F backupfilename
  484.  
  485.                [Remember, using "lock" or "unlock" is not necessary if
  486.                your emergency startup disk is DOS 6.22 or lower.]
  487.  
  488.           7. Remove the Startup disk, and reboot your system.  You may
  489.           get some errors about missing drivers (e.g. no sound card
  490.           drivers), but things should basically work.  Run DriveSpace to
  491.           compress your drives the way you want.
  492.  
  493.           8. Reboot your system in DOS mode or from the Startup disk.
  494.  
  495.           9. Restore all rest of the files on all of your disks from the
  496.           backup now.  See the "IMPORTANT" note in step 5 about
  497.           MSDOS.SYS and IO.SYS.
  498.  
  499.           10. Restore all the rest of your long filenames by running
  500.  
  501.              LOCK C:
  502.              DOSLFNBK c:\ /R /V /F backupfilename
  503.  
  504.                [unless you executed DOSLFNBK specifying a backupfilename
  505.                other than BACKUP.LFN, type in BACKUP.LFN as the
  506.                backupfilename]
  507.  
  508.           and if you've also got a D: partition,
  509.  
  510.              LOCK D:
  511.              DOSLFNBK d:\ /R /V /F backupfilename
  512.  
  513.           You may get messages about some long filenames already
  514.           existing from your first restore; don't worry about those.
  515.  
  516.  
  517.          [10.a. An alternative restore command syntax is
  518.  
  519.                lock
  520.                DOSLFNBK c:\ /r /v /p /f BACKUP.LFN
  521.  
  522.            which will prompt you for an okay before restoring each LFN 
  523.            or long-filename-format directory name.]
  524.  
  525.           11. Some restore programs set the archive bit on all restored
  526.           files; you might want to turn it off (since you've still got
  527.           those files backed up) at this point.
  528.  
  529.         Reboot your system, and things should be back as they were when
  530.         you did your backup!  [In the event something is missing from 
  531.         your StartUp menu or program folders, odds are high it is a 
  532.         .LNK file which was missed in the restoration process.  This is 
  533.         where that BACKUP.LST file in the above example .BAT file can 
  534.         become very handy.]
  535.  
  536.         [In the even you need to rename a truncated 8.3 format filename 
  537.         as a LFN which has spaces, put the new name in quotes.  For 
  538.         example:
  539.  
  540.                REN PROGRA~1 "Program Files"
  541.                or
  542.                REN MICROS~1.WAV "Microsoft Sound File.Wav"
  543.  
  544.         Again, your most likely missing or unrenamed LFNs will be .LNK 
  545.         files and usually on the far end of a directory branch.]
  546.  
  547. 7. License:
  548.  
  549.         DOSLFNBK is *not* public domain software, but you may use it at
  550.         no charge.  You may distribute unmodified copies of the complete
  551.         DOSLFNBK package, provided your total charge is no more than $1.
  552.         The total cost of a compilation (e.g. a CD ROM) including
  553.         DOSLFNBK must be no more than $1 per package in the compilation.
  554.  
  555.         DOSLFNBK was written in Borland Pascal 7.01, using the excellent
  556.         Object Professional library from TurboPower Software.  You can
  557.         obtain the source code (including an object-oriented low-level
  558.         disk access unit and a huge memory support unit, but not Opro)
  559.         by sending a cheque or money order for $50 (in Canadian or US
  560.         dollars, or the UKP equivalent of $50US) to:
  561.  
  562.          Duncan Murdoch
  563.          337 Willingdon Ave.
  564.          Kingston, Ontario, Canada.
  565.          K7L 4J3
  566.  
  567.         You can also order source code from the Public (software) Library
  568.         (PsL) using MC, Visa, AmEx, or Discover card:
  569.          - by calling 800-242-4775 (US only)
  570.          - by calling 713-524-6394
  571.          - by faxing your order to 713-524-6398
  572.          - by sending your order by Compuserve to 71355,470.
  573.          - by sending your order by Internet to 71355.470@compuserve.com
  574.         PsL only accepts payment in US dollars.  Please give PsL your
  575.         name exactly as it appears on the card, and tell them your
  576.         card's expiry date.  DOSLFNBK is PsL product #14247.
  577.  
  578.         The PsL numbers are for ordering only.  I *cannot* be reached at
  579.         the PsL numbers.  To contact me for information about dealer
  580.         pricing, volume discounts, site licensing, the status of
  581.         shipment of the product, the latest version number or for
  582.         technical information write to me at the address above or at one
  583.         of the email addresses below.  I'd especially like to hear bug
  584.         reports and suggestions for improvements.
  585.  
  586.          Fidonet:    DJ Murdoch at 1:249/99.5
  587.          Internet:   dmurdoch@mast.queensu.ca
  588.          Compuserve: 71631,122
  589.  
  590. 8. Release history:
  591.  
  592.        0.0 - first beta test version
  593.        0.1 - kept file attributes of existing file during restore.
  594.        0.2 - made messages more informative; fixed bug in handling
  595.              erased file entries; added check of overwrite of backup
  596.              file; changed default name of backup file to BACKUP.LFN and
  597.              made LFN the default backup extension; added /P option.
  598.        0.3 - fixed memory leak that caused run-time error 203 on large
  599.              restore
  600.        0.4 - added check for successful write of backup file, added
  601.              /force option.
  602.        0.5 - added report of memory use, /d option, many debugging messages
  603.        0.6 - cleaned up messages and debug log, removed disk size
  604.              restriction, added progress dots for non-verbose runs.
  605.        1.0 - first public release --- same as 0.6
  606.  
  607. 9. Acknowledgments
  608.  
  609.         DOSLFNBK was written based on the information in Robert Hummel's
  610.         article on Win95 long filenames in the June/July 1995 issue of
  611.         PC Techniques Magazine.  Thanks are due to the beta testers, who
  612.         suggested many improvements, and several of whom were put to
  613.         considerable inconvenience by early versions that messed up
  614.         their disks.
  615.  
  616.  
  617.  
  618. END DOSLFNBK.TXT v1.01
  619.  
  620. text modifications/additions by
  621. the Intrepid Infonaut
  622. mguffey@aol.com
  623. online since 1983
  624.  
  625. [post script]
  626.  
  627. EXAMPLE .BAT FILE FOR TWO HARD DISKS
  628.  
  629. @echo off
  630. cls
  631. c:
  632. echo.
  633. echo Preparing to create BACKUP.LFN and BACKUP.LST on drive C:
  634. echo.
  635. cd\
  636. if exist backup.lfn del backup.lfn
  637. if exist backup.lst del backup.lst
  638. doslfnbk c:\ /v > backup.lst
  639. REM The redirection saves DOSLFNBK's verbose output to a handy disk file.
  640. REM If you wish to view BACKUP.LST before proceeding into the backup, 
  641. REM add the following line here: TYPE C:\BACKUP.LST | MORE
  642. d:
  643. echo.
  644. echo Preparing to create BACKUP.LFN and BACKUP.LST on drive D:
  645. echo.
  646. cd\
  647. if exist backup.lfn del backup.lfn
  648. if exist backup.lst del backup.lst
  649. doslfnbk d:\ /v > backup.lst
  650. c:
  651. \windows\smartdrv
  652. REM Above makes everything faster if your startup disk did not load SMARTDRV.
  653. \ex\mouse
  654. REM Above is an example of loading mouse software for the tape backup program.
  655. echo.
  656. echo Preparing to load IOMEGA's QBACKUP for Ditto Drives.
  657. echo.
  658. cd\ditto
  659. qbackup
  660.  
  661.  
  662. [post, post script]
  663.  
  664. Subj:          Your message re DOSLFNBK
  665. Date:          96-02-21 20:03:56 EST
  666. From:          dmurdoch@mast.QueensU.CA (Duncan Murdoch)
  667. To:            MGuffey@aol.com
  668.  
  669. I got your mail regarding DOSLFNBK today.  Thanks for all the suggestions;
  670. they do improve the text, and with your permission I'll make use of a lot of
  671. them if I release a new version.  (I have no immediate plans to do so,
  672. though.)
  673.  
  674. I only saw one error in what you wrote, and I thought it might help you to
  675. know about it.  In the 4th paragraph of the Details section, I wrote "Note
  676. that the directory name itself won't be backed up or restored" and you added
  677. "unless it is a long-filename-format named directory".  This isn't correct.
  678. DOSLFNBK will never modify the name of the directory that is specified on
  679. its command line.
  680.  
  681. To change it, you need to specify the parent directory on the command line.
  682. That's what the PROGRA~1 example was about.
  683.  
  684. Duncan Murdoch
  685.  
  686.  
  687.  
  688.